package com.demo.dao.auth.mapper;

import com.demo.dao.auth.entity.*;
import com.demo.dao.common.entity.CatalogItem;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


@Mapper
@Repository
public interface AuthUserInfoMapper {
    //根据label读取菜单类别Id
    public CatalogItem getMenuIdByLabel(String name);

    //验证账号和密码,并读取角色
    public AuthUserNode getUser(AuthLoginNode user);

    //读取所有菜单
    public List<AuthMenuNode> getMenu();

    //读取权限组件,masterId, fieldTypeId
    public List<AuthPermissionNode> getPermissionByParams(Map<String, String> map);
}
